package org.lmind.srd35.map

import org.lmind.srd35.core._
import java.util._

class Map {
  
  var tileMap = new HashMap[(Int, Int), ArrayList[PositionObject]]()
  
  var creatures = new HashMap[(Int, Int), ArrayList[Creature]]()
  
  def init(width:Int, height:Int) = {
    
    // 初始化tileMap
    for (val i <- 0 to width) {
      for (val j <- 0 to height) {
        tileMap.put((i, j), new ArrayList[PositionObject]())
      }
    }
  }
}